package com.xx.mapper;
import com.xx.entity.EmployeesRegister;
import org.apache.ibatis.annotations.Param;

import com.xx.entity.Employees;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeesMapper {

    //分页查询所有数据
    List<Employees> selectAllByPage(@Param("employees") Employees employees);

    //通过主键查询单条数据
    Employees selectByEmployeeId(@Param("employeeId")Integer employeeId);

    //新增数据
    int insertSelective(@Param("employees") Employees employees);

    //修改数据
    int updateByEmployeeId(@Param("updated")Employees updated,@Param("employeeId")Integer employeeId);

    //删除数据
    int deleteByEmployeeId(@Param("employeeId")Integer employeeId);

    //登录
    Employees selectByLoginName(@Param("loginName") String loginName);

    //注册
    int registerEmployees(@Param("employeesRegisterDTO") EmployeesRegister employeesRegister);
}




